/**
 * 
 */
package org.extdev.protocol.ltr;

import java.nio.DoubleBuffer;
import java.nio.IntBuffer;

import org.extdev.libraries.ltr.LTR212APILibraryFacade;
import org.extdev.libraries.ltr.LTRException;
import org.extdev.protocol.Protocol;

/**
 * @author LAP
 *
 */
public class LTR212LibProtocol implements Protocol<IntBuffer, DoubleBuffer> {
	private LTR212APILibraryFacade ltr212Facade;
	
	public LTR212LibProtocol(LTR212APILibraryFacade ltr212Facade) {
		this.ltr212Facade = ltr212Facade;
	}
	
	@Override
	public DoubleBuffer rewriteData(IntBuffer data) throws LTRException {
		return ltr212Facade.processData(data);
	}
	
}
